package com.wzh.springbootinit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzh.springbootinit.model.entity.User;

import javax.servlet.http.HttpServletRequest;

/**
* @author Admin
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2023-03-31 20:16:56
*/
public interface UserService extends IService<User> {

    Long userRegister(String useraccount, String userpassword, String checkPassword);

    User userLogin(String userAccount, String userPassword, HttpServletRequest request);

    User getLoginUser(HttpServletRequest request);

    Boolean userLogout(HttpServletRequest request);

    public boolean isAdmin(HttpServletRequest request);
}
